package com.zhang.common.batch;

import java.util.Date;

/**
 * 公共配置类, 所有配置文件基类
 * 例：
 * @Configuration
 * @ConfigurationProperties("task.user.add")
 * public class UserAddConfig extends BaseConfig {
 * }
 * @author zhangxin
 */
public class BaseConfig {
    /**
     * job名称
     */
    private String jobName;

    /**
     * 一次write的处理(process)记录数
     */
    private int chunkSize;

    /**
     * 跳过次数
     */
    private int skipLimit;
    /**
     * 线程数限制
     */
    private int throttleLimit;
    /**
     * 每页大小
     */
    private int pageSize;

    /**
     * 数据分区数
     */
    private int gridSize;
    /**
     * 编码
     */
    private String encoding;

    /**
     * 业务日期
     */
    private Date businessDate;

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public int getChunkSize() {
        return chunkSize;
    }

    public void setChunkSize(int chunkSize) {
        this.chunkSize = chunkSize;
    }

    public int getSkipLimit() {
        return skipLimit;
    }

    public void setSkipLimit(int skipLimit) {
        this.skipLimit = skipLimit;
    }

    public int getThrottleLimit() {
        return throttleLimit;
    }

    public void setThrottleLimit(int throttleLimit) {
        this.throttleLimit = throttleLimit;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getGridSize() {
        return gridSize;
    }

    public void setGridSize(int gridSize) {
        this.gridSize = gridSize;
    }

    public String getEncoding() {
        return encoding;
    }

    public void setEncoding(String encoding) {
        this.encoding = encoding;
    }

    public Date getBusinessDate() {
        return businessDate;
    }

    public void setBusinessDate(Date businessDate) {
        this.businessDate = businessDate;
    }
}
